package com.zhuxi.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="lagou-service-code")
public interface LagouCodeService {

    //调⽤的请求路径
    @RequestMapping(value = "/code/validate/{email}/{code}",method= RequestMethod.GET)
    public Integer validate(@PathVariable("email") String email,
                            @PathVariable("code") String code);
}
